package com.example.light.web.personal.service.impl;

import com.example.light.web.personal.service.AddressService;
import com.example.light.web.personal.vo.AddressListVO;
import com.example.light.web.system.dao.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;

import java.util.List;

@Service
public class AddressServiceImpl implements AddressService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public void addressList(Model model) {
        List<AddressListVO> userRoleAssociations = userMapper.selectAddressList();
        model.addAttribute("userRoleAssociations",userRoleAssociations);
    }
}
